package com.uzhie.web.anno;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by TangFei on 2018/7/18.
 * 登录以及权限注解
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface Auth {

    // 是否需要token
    boolean tokenRequired() default false;

    // 需要的权限数组
    String[] permissionRequired() default {};

}
